from django.db import models
from meiduo_mall.utils.models import BaseModel
from users.models import User


class OauthQQ(BaseModel):
    # qq的唯一标识
    openid = models.CharField(max_length=100)
    # 绑定本网站的用户对象
    user = models.ForeignKey(User)

    class Meta:
        db_table = 'tb_oauth_qq'
